<?php
  echo $this->Html->css('selling_pdf_style');
?>
<style type="text/css">
  #product-table td {
    border: 1px;
    padding: 5px;
  }
  #table-content {
    border: 2px solid;
    width: 800px;
    background: #F8E3EC;
  }
  #product-table{
    width: 800;
  }
  #product-table th {
    height: 50px;
    text-align: center;
  }
</style>
<?php
$sN = "CashierSell";
?>
<div id="content">
    <div id="page-heading">
        <h1><?=$title?></h1>
    </div>
    <table border="0" width="600" cellpadding="0" cellspacing="0" id="content-table">
        <tr>
            <td>
                <div id="content-table-inner">
                    <div id="table-content">
                        <table border="1" width="600" cellpadding="0" id="product-table" cellspacing="0">
                            <tr style="font-weight: bold;background-color: #F8E3EC">
                                <th  height="30" style="text-align: center;" class="table-header-repeat line-left">
                                    Code
                                </th>
                                <th height="30" style="text-align: center" class="table-header-repeat line-left">
                                    Type
                                </th>
                                <th height="30" style="text-align: center" class="table-header-repeat line-left">
                                    Amount
                                </th>
                                <th  height="30" style="text-align: center" class="table-header-repeat line-left">
                                    Sell Time
                                </th>
                            </tr>
                            <?php 
                                $alt = 0;
                                foreach($values as $value): 
                                    $alt_row = $alt % 2;
                                    $alt_rows = ($alt_row == 1)? 'alternate-row': '';
                            ?>
                            <tr bgcolor="<?php echo ($alt_rows!="")?"#CCCCCC":"#FFFFFF" ?>"  style="padding: 5px" class="<?php echo $alt_rows; ?>">
                                <td style="height: 20px" >
                                    <?php 
                                    echo $value[$sN]['code'];
                                    ?>
                                </td>
                                <td valign="center"  style="vertical-align: middle;height: 20px">
                                    <?php echo ucfirst($value[$sN]['type']); ?>
                                </td>
                                <td   style="height: 20px">
                                    <?php echo $value[$sN]['amount']; ?>
                                </td>
                                <td   style="height: 20px">
                                    <?php 
                                    echo $value[$sN]['created'];
                                    ?>
                                </td>
                            </tr>
                            <?php 
                                $alt++;
                                endforeach; 
                            ?>
                        </table>
			<div class="clear"></div>
                    </div>
                    <div class="clear"></div>
                </div>
            </td>
        </tr>
    </table>
    <div class="clear">&nbsp;</div>
</div>